﻿using Org.BouncyCastle.Crypto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Jinjia.Approve.Entity
{


    public partial class erpa_user_tbl
    {

        public int id { get; set; }
        public string user_name { get; set; }
        public string login_id { get; set; }
        public string login_pwd { get; set; }
        public DateTime? latest_login_time { get; set; }

        public int is_external { get; set; }

        public string qywx_id { get; set; }

        public int login_account_type { get; set; }

        public int main_login_id { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string role_names { get; set; }

        public int province { get; set; }
        public int city { get; set; }
        public int district { get; set; }
        public string receivername { get; set; }
        public string receiverphone { get; set; }
        public string address { get; set; }

        public string buyer_name { get; set; }
        public string buyer_number { get; set; }
        public int action_flag { get; set; }
        public string responsible_shop { get; set; }
        public DateTime expiry_date { get; set; }
        public string team { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string code { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string name { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string token { get; set; }
        public string encrypt_pwd { get; set; }

        [SugarColumn(IsIgnore = true)]
        public int supplier_id { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string supplier_flag { get; set; }

        public string ding_user_id { get; set; }
        public string wdt_user_name { get; set; }
        public int receiver_id { get; set; }

        public DateTime? latest_change_pwd_time { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string agency_audit_status { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string agency_contract_status { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string agency_audit_memo { get; set; }
        public string phone { get; set; }

        /// <summary>
        /// 是否销售业务员（0：否；1：是）
        /// </summary>
        public int is_salesman { get; set; }
        [SugarColumn(IsIgnore = true)]
        public int user_id { get; set; }

        /// <summary>
        /// 登录异常次数
        /// </summary>
        public int error_count { get; set; }

        /// <summary>
        /// 登录锁定状态 0 正常 1 锁定
        /// </summary>
        public int login_lock_status { get; set; }

        /// <summary>
        /// 用户飞书UnionId
        /// </summary>
        public string union_id { get; set; }
    }
}
